package com.dorm.cj.statics;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/")
public class TestController {
    @RequestMapping("/1")
    public String index1(Model model, HttpServletResponse response) {

        return "forward:/index.html";
    }

    @RequestMapping("/2")
    public String index2(Model model, HttpServletResponse response) {
        return "/index.html";
    }

    @RequestMapping("/3")
    public String index3(Model model, HttpServletResponse response) {
        return "/hello.html";
    }
}
